{{!< layout}}
<div  id="content"  style="margin: 0 32px">
    <header id="header" role="banner">
        <nav class="aui-header aui-dropdown2-trigger-group" role="navigation">
            <div class="aui-header-inner">
                <div class="aui-header-primary">
                </div>
            </div>
        </nav>
    </header>
    <section  role="main" v-show="!isShow&&!isTabs">
        <div class="aui-message aui-message-error" v-show="info.isError">
            <p class="title">
                <strong v-text="info.title"></strong>
            </p>
            <p><span v-text="info.message"></span> <span>Automatic shutdown after <a href="#" v-text="countdown">3</a> seconds</span></p>
        </div>
        <div class="aui-toolbar2 " role="toolbar" style="margin-left:40px">
            <div class="aui-toolbar2-inner">
                <button class="aui-button aui-button-primary" @click="CheckSelected()">Check selected</button>
            </div>
        </div>

        <table id="custom-parser-example" class="aui ">
            <thead>
            <tr>
                <th>
                    Selection
                </th>
                <th class="aui-table-column-issue-key">Name</th>
                <th>Key</th>
                <th>Type</th>
            <tr>
            </thead>
            <tbody id="h">
            <tr v-for="(item,index) in list">
                <td>
                    <div class="checkbox">
                        <input class="checkbox" type="checkbox" :checked="item.checkbox" name="checkBoxOne" @click="ActionSelect(item.id)">
                    </div>
                </td>
                <td>
                    <span class="sc-eLdqWK caDjkz">
                        <img class="sc-iiUIRa pkJJn" width="16" height="16"
                             :src="item.img"
                             :alt="item.name">     <a href="#" :title="item.name" v-text="item.name" @click="Action(item.id)"></a>
                    </span>
                </td>
                <td v-text="item.key"></td>
                <td v-text="item.type"></td>
            </tr>
            </tbody>
        </table>
        <div id="yuan"></div>
    </section>
<!-- <section role="main"  v-show="tabs.length>0&&isShow">
        <div class="aui-toolbar2 " role="toolbar" style="margin-left:40px">
            <div class="aui-toolbar2-inner">
                <button class="aui-button aui-button-primary" @click="nextHtml()">Back</button>
            </div>
        </div>
        <table class="aui">
            <thead>
            <tr>
                <th>Name</th>
                <th >User Story</th>
                <th >Sub Task</th>
            </tr>
            </thead>
            <tbody>
            <tr v-for="(item,index) in tabs" >
                <td  v-text="item.title"></td>
                <td  v-text="item.story"></td>
                <td v-text="item.subTask"></td>
            </tr>
            </tbody>
        </table>
    </section> -->
    <section role="main" v-if="isTabs">
        <div class="aui-toolbar2 " role="toolbar" style="margin-left:40px">
            <div class="aui-toolbar2-inner">
                <button class="aui-button aui-button-primary" @click="nextHtml()">Back</button>
                <button class="aui-button aui-button-primary" @click="Reset()">Reset</button>
            </div>
        </div>

        <div class="aui-tabs horizontal-tabs">
            <ul class="tabs-menu">
                <li class="menu-item" v-for="(item,index) in lssuets">
                    <a :href="'#'+item.name" v-text="item.name"></a>
                </li>
            </ul>
            <div class="tabs-pane active-pane" v-for="(item1,index) in lssuets" :id="item1.name">
                <h2 v-text="item1.name"></h2>
                <div class="aui-group aui-group-split peri">
                    <div class="aui-item">
                        <canvas :id="'c1'+item1.name" aspectRatio="0"></canvas>
                    </div>
                    <div class="aui-item">
                        <canvas :id="'c3'+item1.name" aspectRatio="0"></canvas>
                    </div>
                    <div class="aui-item">
                        <canvas :id="'c2'+item1.name" aspectRatio="0"></canvas>
                    </div>
                </div>
                <table class="aui aui-table-sortable">
                    <thead>
                    <tr>
                        <th>Summary</th>
                        <th>Sprint</th>
                        <th>Good Story</th>

                        <th>Author</th>
                        <th>Changed history</th>
                        <th>story point</th>
                        <th>Sub-task</th>
                    <tr>
                    </thead>
                    <tbody>
                    <tr   v-for="item in item1.data" v-if="
            item.show=='A'||(item.show=='b'&&item.name=='Good story')||(item.show=='c'&&item.name=='Bad story')||(item.show=='d'&&item.sprint=='ongoing')||(item.show=='e'&&item.sprint=='backlog')||(item.show=='h'&&item.sprint=='overdue')||(item.show=='f'&&item.customfield_10020>0)||(item.show=='g'&&item.customfield_10020<=0)
            ">
                        <td><img :src="item.issuetype.iconUrl"><span v-text="item.summary"></span></td>
                        <td>
                            <span class="aui-lozenge "   v-text="item.sprint" v-if="item.sprint!=''" :class="{'aui-lozenge-info':item.sprint=='backlog','aui-lozenge-success':item.sprint=='ongoing','orangeColor':item.sprint=='overdue'}"></span>
                        </td>
                        <td>
                            <span class="aui-lozenge "   v-text="item.name" v-if="item.name!=''" :class="item.name=='Bad story'?'aui-lozenge-error coursors':'aui-lozenge-success'" @click="open(item.message,item.name)"></span>
                        </td>
                        <td ><img :src="item.creator.avatarUrls['16x16']" /><span v-text="item.creator.displayName"></span></td>
                        <td v-text="item.log"></td>
                        <td><span :class="['aui-badge',{'blueColor':item.customfield_10020>0,'orangeColor':item.customfield_10020==0}]" v-text="item.customfield_10020" v-if="item.customfield_10020!=null"></span></td>
                        <td v-text="item.sub"></td>
                    </tr>
                    <tr v-if="item1.data.length==0" v-text="item1.message"></tr>
                    </tbody>
                </table>
            </div>
        </div>
    </section>

    <section role="main"  v-if="lssuets.length>0&&isShow">
        <div class="aui-toolbar2 " role="toolbar" style="margin-left:40px">
            <div class="aui-toolbar2-inner">
                <button class="aui-button aui-button-primary" @click="nextHtml()">Back</button>
                <button class="aui-button aui-button-primary" @click="Reset()">Reset</button>
            </div>
        </div>
        <div class="aui-group aui-group-split peri">
            <div class="aui-item">
                <canvas id="c1" ></canvas>
            </div>
            <div class="aui-item">
                <canvas id="c3" ></canvas>
            </div>
            <div class="aui-item">
                <canvas id="c2" ></canvas>
            </div>
        </div>
        <table class="aui aui-table-sortable">
            <thead>
            <tr>
                <th>Summary</th>
                <th>Sprint</th>
                <th>Good Story</th>
                <th>Author</th>
                <th>Changed history</th>
                <th>story point</th>
                <th>Sub-task</th>
            <tr>
            </thead>
            <tbody>
            <tr v-for="item in lssuets" v-if="
            item.show=='A'||(item.show=='b'&&item.name=='Good story')||(item.show=='c'&&item.name=='Bad story')||(item.show=='d'&&item.sprint=='ongoing')||(item.show=='e'&&item.sprint=='backlog')||(item.show=='h'&&item.sprint=='overdue')||(item.show=='f'&&item.customfield_10020>0)||(item.show=='g'&&item.customfield_10020<=0)
            ">
                <td>
                    <img :src="item.issuetype.iconUrl"><span v-text="item.summary" class="wrap" :title="item.summary"></span>
                </td>
                <td >
                    <span class="aui-lozenge "   v-text="item.sprint" v-if="item.sprint!=''" :class="{'aui-lozenge-info':item.sprint=='backlog','aui-lozenge-success':item.sprint=='ongoing','orangeColor':item.sprint=='overdue'}"></span>
                </td>
                <td>
                    <span class="aui-lozenge "   v-text="item.name" v-if="item.name!=''" :class="item.name=='Bad story'?'aui-lozenge-error coursors':'aui-lozenge-success'" @click="open(item.message,item.name)"></span>
                </td>
                <td ><img :src="item.creator.avatarUrls['16x16']" /><span v-text="item.creator.displayName"></span></td>
                <td v-text="item.log"></td>
                <td><span :class="['aui-badge',{'blueColor':item.customfield_10020>0,'orangeColor':item.customfield_10020==0}]" v-text="item.customfield_10020" v-if="item.customfield_10020!=null"></span></td>
                <td v-text="item.sub"></td>
            </tr>
            </tbody>
        </table>
    </section>
    {{!<footer}}

        <div role="dialog" id="demo-dialog" class="aui-layer aui-dialog2 aui-dialog2-medium" aria-hidden="true">
            <header class="aui-dialog2-header">
                <h2 class="aui-dialog2-header-main">Title Reason for not a good story</h2>
                <a class="aui-dialog2-header-close">
                    <span class="aui-icon aui-icon-small aui-iconfont-close-dialog">Close</span>
                </a>
            </header>
            <div class="aui-dialog2-content">
                <p v-html="html"></p>
            </div>
        </div>
</div>
    <script src="https://cdn.bootcss.com/vue/2.5.16/vue.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></script>
    <script src="{{furl '/js/hello-world.js'}}"></script>